package com.itheima.mymethod;

public class Method7max {
    public static void main(String[] args) {
        int max = getMax(10, 20, 30);
        System.out.println(max);
    }

    public static int getMax(int a, int b, int c) {
        int max = 0;
        //ctrl alt v
        int d = a;
        if (a < b) {
            d = b;
        } else {
            d = a;
        }
        if (d < c) {
            max = c;
        } else {
            max = d;
        }
        return max;
    }
}
